import request from '@/utils/request'
import qs from 'qs'

const prefix = '/v1'

export function loginLogList(params) {
    return request.get(`${prefix}/loginLog/list`, {params}) 
}

// 批量刪除登录日志

export function batchDelete(params) {
    return request.post(`${prefix}/loginLog/batchDelete`, params) 
}


export function deleteById(id) {
    return request.post(`${prefix}/loginLog/delete`, qs.stringify({id}, {
        method: 'POST',
        headers: {'content-type': 'application/x-www-form-urlencoded'}
    }));
}